package com.registration.bean;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CodeBean {
    private Integer code_id;
    private   Integer user_id;
    private   String phone;
    private  Integer code;
    private  Integer status;//1-可用 0-失效
    private Date create_time;

    @Override
    public String toString() {
        return "CodeBean{" +
                "code_id=" + code_id +
                ", user_id=" + user_id +
                ", phone='" + phone + '\'' +
                ", code=" + code +
                ", status=" + status +
                ", create_time=" + create_time +
                '}';
    }

    public CodeBean(Integer code_id) {
        this.code_id = code_id;
    }

    public Integer getCode_id() {
        return code_id;
    }

    public void setCode_id(Integer code_id) {
        this.code_id = code_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }
}
